import { Injectable } from '@angular/core';
import { Http } from '@angular/http';

@Injectable()
export class CoursewareService {
    //private lppUrl = 'http://localhost:3661';
    private lppUrl = 'http://lpp.arktao.com';
    private cwUrl = 'http://cw.arktao.com';

    constructor(private http: Http) { }
    //获取课件模板列表
    GetCoursewareList(PacketGuid): Promise<any> {
        return this.http.get(this.lppUrl + "/Courseware/CoursewareList/" + PacketGuid + "")
            .toPromise().then(res => { return res.json() })
    }
}